cd "/media/Environ/Compile/rocksndiamonds-4.1.4.1" && /usr/bin/gdb -- "./rocksndiamonds"
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./rocksndiamonds...done.
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe397c700 (LWP 9298)]
[New Thread 0x7fffe393b700 (LWP 9300)]
[New Thread 0x7fffe1a9e700 (LWP 9301)]
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
rocksndiamonds: frame delay == 29 ms (max. 34 fps / 68 %)
rocksndiamonds: frame delay == 20 ms (max. 50 fps / 100 %)
double free or corruption (out)

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a3535 in __GI_abort () at abort.c:79
#2  0x00007ffff78fa508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0528d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff7900c1a in malloc_printerr (str=str@entry=0x7ffff7a06ff8 "double free or corruption (out)") at malloc.c:5341
#4  0x00007ffff7902730 in _int_free (av=0x7ffff7a3cc40 <main_arena>, p=0x55555f810990, have_lock=<optimized out>) at malloc.c:4306
#5  0x0000555555713b28 in checked_free (ptr=0x55555f8109a0) at misc.c:1275
#6  0x0000555555712b25 in setString (old_value=0x55555860c330 <tape+16>, new_value=0x55555c778940 "rnd_krystian_abramowicz") at misc.c:844
#7  0x00005555556eca43 in TapeErase () at tape.c:530
#8  0x000055555568771f in GameEnd () at game.c:4775
#9  0x000055555568761d in GameWon () at game.c:4722
#10 0x00005555556a7dbd in GameActionsExt () at game.c:11371
#11 0x00005555556a8485 in GameActions () at game.c:11625
#12 0x000055555567c8b9 in HandleGameActions () at screens.c:8369
#13 0x0000555555646d83 in EventLoop () at events.c:359
#14 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb28) at main.c:7762
(gdb) # was right after hitting space to replace old tape at end of level, # could this bug happend when I do this too fast?
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe397c700 (LWP 11340)]
[New Thread 0x7fffe393b700 (LWP 11341)]
[New Thread 0x7fffe1a9e700 (LWP 11343)]
rocksndiamonds: warning: getKeyFromKeyName(): not completely implemented
rocksndiamonds: warning: getKeyFromKeyName(): not completely implemented
[Thread 0x7fffe393b700 (LWP 11341) exited]
[Thread 0x7fffe397c700 (LWP 11340) exited]
[Thread 0x7fffe1a9e700 (LWP 11343) exited]
[Inferior 1 (process 11337) exited normally]
(gdb) # it didn't add score to hall of fame, but it did change the level completion color to green
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe397c700 (LWP 11497)]
[New Thread 0x7fffe393b700 (LWP 11498)]
[New Thread 0x7fffe1a9e700 (LWP 11501)]
[Thread 0x7fffe393b700 (LWP 11498) exited]
[Thread 0x7fffe397c700 (LWP 11497) exited]
[Thread 0x7fffe1a9e700 (LWP 11501) exited]
[Inferior 1 (process 11496) exited normally]
(gdb) # tape replay back wa bad
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe397c700 (LWP 11768)]
[New Thread 0x7fffe393b700 (LWP 11769)]
[New Thread 0x7fffe1a9e700 (LWP 11770)]
free(): double free detected in tcache 2

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a3535 in __GI_abort () at abort.c:79
#2  0x00007ffff78fa508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0528d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff7900c1a in malloc_printerr (str=str@entry=0x7ffff7a06f58 "free(): double free detected in tcache 2") at malloc.c:5341
#4  0x00007ffff79026fd in _int_free (av=0x7ffff7a3cc40 <main_arena>, p=0x55555f806f40, have_lock=<optimized out>) at malloc.c:4193
#5  0x0000555555713b28 in checked_free (ptr=0x55555f806f50) at misc.c:1275
#6  0x0000555555712b25 in setString (old_value=0x55555860c330 <tape+16>, new_value=0x55555c778670 "rnd_krystian_abramowicz") at misc.c:844
#7  0x00005555556eca43 in TapeErase () at tape.c:530
#8  0x00005555556ecbff in TapeStartRecording (random_seed=1580762065) at tape.c:584
#9  0x00005555556a7c7b in StartGameActions (init_network_game=0, record_tape=1, random_seed=0) at game.c:11322
#10 0x000055555564a483 in HandleKey (key=32, key_status=1) at events.c:2233
#11 0x0000555555648c63 in HandleKeyEvent (event=0x7fffffffd9d0) at events.c:1462
#12 0x0000555555646b84 in HandleEvents () at events.c:249
#13 0x0000555555646d67 in EventLoop () at events.c:348
#14 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb28) at main.c:7762
(gdb) # was hitting restore tape shortcut ?in main menu?
